import Vue from 'vue'
import Router from 'vue-router'
import index from '@/components/index'
import forms from '@/components/form'
import ends from '@/components/end'
import sc from '@/components/cs'
import routers from '@/components/router'

Vue.use(Router)

export default new Router({
    // mode: 'history',
    routes: [{
        path: '/',
        name: 'index',
        component: index
    }, {
        path: '/forms',
        name: 'forms',
        component: forms
    }, {
        path: '/ends/:youname/:toname',
        name: 'ends',
        component: ends
    }, {
        path: '/sc/:youname/:toname/:msg',
        name: 'sc',
        component: sc
    }, {
        path: '/r/:qrid',
        name: 'r',
        component: routers
    }]
})